package com.fa4j.demo.book.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fa4j.common.data.model.Base;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 示例书
 *
 * @since 2025-09-01 18:44:28
 */
@Data
@TableName(value = "t_demo_book", autoResultMap = true)
@Schema(description = "示例书")
public class Book extends Base {

    @Schema(description = "ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "书名")
    private String name;

    @Schema(description = "状态")
    private Integer state;

    @Schema(description = "图片ID")
    private Long imgId;

    @Schema(description = "作者")
    private String author;

    @Schema(description = "操作人ID")
    private Long operatorId;


}
